/**
 * 代理中间件
 */
const target = 'http://192.168.1.234:1337'  // 代理目标地址
const proxy = require('http-proxy-middleware')

 module.exports = proxy({
   target,
  //  logLevel: 'debug',
   changeOrigin: true,
   pathRewrite: { '^/api': ''}
 })
